import request from '@/utils/request'
import { AxiosPromise } from 'axios'

enum Api {
  list = '/report/temperatureHumidityReport/list',
  export = '/report/temperatureHumidityReport/export',
}
export interface TemperatureHumidityRecordVO {
  createAt: number
  createBy: number
  createDept: number
  createTime: string
  id?: string
  name: string
  updateBy: number
  updateTime: string
}

export interface TemperatureHumidityRecordQuery extends PageQuery {
  dateTimeBegin: any
  dateTimeEnd: any
}

export interface TemperatureHumidityRecordForm {}

// 获取列表
export const getDoorAccessReporList = (data?: TemperatureHumidityRecordQuery): AxiosPromise<any> => {
  console.info(data)
  return request({
    url: Api.list,
    method: 'post',
    data,
  })
}

// 获取所有
export const exportDeviceSupplierAll = (): AxiosPromise<TemperatureHumidityRecordVO[]> => {
  return request({
    url: Api.export,
    method: 'post',
  })
}
